package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.common.R;
import com.itheima.domain.AddressBook;

import java.util.List;

public interface AddressBookService extends IService<AddressBook> {

    public R<String> clientSetDefaultAddress(String token, AddressBook addressBook);

    public R<AddressBook> clientGetDefaultAddress(String token);

    public R<AddressBook> clientAddAddress(String token,AddressBook addressBook);

    public R<List<AddressBook>> clientGetAddressList(String token);
    public R<AddressBook> clientGetAddressById(String id);

    public R<String> clientUpdateAddress(AddressBook addressBook);

    public R<String> clientDeleteAddressById(String id);
}
